home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 3.2 KB | 146 lines | [TEXT/MPS ] |
- ;
- ; File: CMPRComponent.a
- ;
- ; Contains: ColorSync ProfileResponder Components Interface
- ;
- ; Version: Technology: ColorSync 2.0
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
- __CMPRCOMPONENT__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'QuickdrawText.a' ;
-
- IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
- include 'Components.a'
- ENDIF
-
- IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
- include 'CMApplication.a'
- ENDIF
- ; include 'Files.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Memory.a' ;
- ; include 'Finder.a' ;
- ; include 'Printing.a' ;
- ; include 'Errors.a' ;
- ; include 'Dialogs.a' ;
- ; include 'Menus.a' ;
- ; include 'Controls.a' ;
- ; include 'Windows.a' ;
- ; include 'Events.a' ;
- ; include 'TextEdit.a' ;
- ; include 'CMICCProfile.a' ;
-
- CMPRInterfaceVersion EQU 0
-
- ; Component function selectors
- kCMPRGetProfile EQU 0
- kCMPRSetProfile EQU 1
- kCMPRSetProfileDescription EQU 2
- kCMPRGetIndexedProfile EQU 3
- kCMPRDeleteDeviceProfile EQU 4
-
- ;
- ; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMGetProfile
- dc.w $2F3C
- dc.w $0008
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMGetProfile
- ENDIF
-
- ;
- ; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMSetProfile
- dc.w $2F3C
- dc.w $0004
- dc.w $0001
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMSetProfile
- ENDIF
-
- ;
- ; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMSetProfileDescription
- dc.w $2F3C
- dc.w $0008
- dc.w $0002
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMSetProfileDescription
- ENDIF
-
- ;
- ; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMGetIndexedProfile
- dc.w $2F3C
- dc.w $000C
- dc.w $0003
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMGetIndexedProfile
- ENDIF
-
- ;
- ; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMDeleteDeviceProfile
- dc.w $2F3C
- dc.w $0004
- dc.w $0004
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMDeleteDeviceProfile
- ENDIF
-
- ENDIF ; __CMPRCOMPONENT__
-